//
//  TheHostLastCollectionViewCell.m
//  沙哈拉FM
//
//  Created by dllo on 15/11/10.
//  Copyright © 2015年 S1mpl3. All rights reserved.
//

#import "TheHostLastCollectionViewCell.h"
#import "FitHeader.h"
@implementation TheHostLastCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        _titleLabel = [[BaseLabel alloc]init];
        [_titleLabel setFontSize:14];
        _titleLabel.layer.borderWidth = .5;
        _titleLabel.tintColor = [UIColor grayColor];
        _titleLabel.backgroundColor = [UIColor whiteColor];
        _titleLabel.layer.borderColor = [UIColor grayColor].CGColor;
        _titleLabel.textAlignment = 1;
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    _titleLabel.frame = CGRectMake(0, 0, 375 * FITWidth / 4, 40 * FITHeight);
}
- (void)setHost:(TheHost *)host{
    _titleLabel.text = host.title;
}
@end
